# -*- coding: utf-8 -*-

"""Unimail
@version: 0.14
@license: GPL 3.0 (see "license" file)
@author: Jose A. Jimenez
@contact: jajimc@gmail.com"""

import re

def validate_email_address(address):
    valid = False   
    emailRegularExpression = "^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3\})(\\]?)$"
        
    if len(address) > 7:
        valid = (re.match(emailRegularExpression, address) != None)
        
    return valid
